package cn.com.org.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import cn.com.org.service.Common;

@Controller
public class BaseController {

	@Autowired	
	protected HttpServletRequest requestBase;
	@Autowired 
    protected Common common;
	protected String uloginName;
	public BaseController(){
		System.out.println("-------------------");
		System.out.println(requestBase);
		System.out.println("-------------------");
		
	}
	
	public String validateUser(HttpServletRequest request){
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("username","ZXY1111");
		System.out.println("base controller");
		return "ZXY111";
	}
}
